package com.neusoft.neuiotms.common.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.common.dto.DictionaryDTO;

public interface DictionaryService {

    List<DictionaryDTO> findAll(Searchable searchable);

    Page<DictionaryDTO> search(Pageable pageable, Searchable searchable);

    DictionaryDTO create(DictionaryDTO dto);

    DictionaryDTO update(Long id, DictionaryDTO dto);

    DictionaryDTO details(Long id);

    void delete(Long id);

    List<DictionaryDTO> findByDictionaryType(String type);

    DictionaryDTO findByDictionaryTypeAndCode(String type, String code);
}
